From a00aab6fb6470d0c00596d42767af9ac83e989b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Guido=20G=C3=BCnther?= Date: Wed, 31 Dec 2025 11:55:41 +0100 Subject: [PATCH] mixer-control: Don't leak ui device MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We have a ref when creating the `device` object, use that for inserting into the hash table as otherwise we leak that reference. Signed-off-by: Guido Günther Applied-upstream: gnome-shell 49.4, commit:d0e1664ac6278b70a7e26bf8135f0d1d92ee1e9f Gbp-Pq: Topic libgvc Gbp-Pq: Name mixer-control-Don-t-leak-ui-device.patch --- subprojects/gvc/gvc-mixer-control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gvc/gvc-mixer-control.c b/subprojects/gvc/gvc-mixer-control.c index 51e389fd5..c7f961349 100644 --- a/subprojects/gvc/gvc-mixer-control.c +++ b/subprojects/gvc/gvc-mixer-control.c @@ -1367,7 +1367,7 @@ sync_devices (GvcMixerControl *control, g_hash_table_insert (is_output ? control->priv->ui_outputs : control->priv->ui_inputs, GUINT_TO_POINTER (gvc_mixer_ui_device_get_id (device)), - g_object_ref (device)); + device); g_signal_emit (G_OBJECT (control), signals[is_output ? OUTPUT_ADDED : INPUT_ADDED], -- 2.39.5